IF EXISTS (SELECT * FROM sysobjects WHERE type = 'U' AND name = 'BookGenre')
	BEGIN
		DROP  Table BookGenre
	END
GO

CREATE TABLE BookGenre
(
   Id int IDENTITY PRIMARY KEY,
   BookId int NOT NULL REFERENCES Book(Id),
   GenreId int NOT NULL REFERENCES Genre(Id)
)
GO
 